package com.example.spidertp.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2023/7/22 1:24 下午
 */

@ApiModel("线程池的核心参数变更记录")
@TableName("t_tp_argument_record")
@Data
public class TpArgumentRecord {


    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("线程池名称,为空则是默认的线程池")
    private String poolName;

    @ApiModelProperty("上一次核心线程数")
    private int lastCorePoolSize;

    @ApiModelProperty("上一次最大线程数")
    private int lastMaximumPoolSize;

    @ApiModelProperty("上一次空闲线程存活时间,默认单位是SECONDS，秒")
    private Long lastKeepAliveTime;


    @ApiModelProperty("当前核心线程数")
    private int currentCorePoolSize;

    @ApiModelProperty("当前最大线程数")
    private int currentMaximumPoolSize;

    @ApiModelProperty("当前空闲线程存活时间,默认单位是SECONDS，秒")
    private Long currentKeepAliveTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("创建时间")
    private Timestamp createTime;

}
